package com.zky.group.grouporder.service.impl;


import com.zky.group.grouporder.entity.PayVo;
import com.zky.group.grouporder.service.PayService;
import com.zky.group.grouporder.util.AlipayTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("payService")
public class PayServiceImpl implements PayService {


    @Autowired
    private AlipayTemplate alipayTemplate;

    @Override
    public String pay(PayVo payVo) {
        try {
           String pay  =  alipayTemplate.pay(payVo);


           return pay;
        }catch (Exception e){


            return null;
        }

    }

}
